import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
import goods from "./components/home/goods"
import ratings from "./components/home/ratings"
import seller from "./components/home/seller"

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
    linkActiveClass: 'active',
  routes: [
    {
      path: "/",
      name: "home",
      component: Home,
      redirect:'/goods',
    },{
      path:"/goods",
      component:goods
    },{
      path:"/ratings",
      component:ratings
    },{
      path:"/seller",
      component:seller
    }
  ]
});
